/**
 * 
 */
package club325.webchat.database.hibernate.dao;

import java.util.List;

import club325.webchat.database.hibernate.domain.Complain;

/**
 * @author Sider
 *
 */
public interface ComplainDAO
{
	/**
	 * insert a Complain into the database
	 * @param complain
	 */
	public void saveComplain(Complain complain);
	
	/**
	 * delete the complain from the database
	 * @param complain
	 */
	public void removeComplain(Complain complain);
	
	/**
	 * find the complain from the database by id
	 * @param complain
	 * @return
	 */
	public Complain findComplainbyID(int id);
	
	/**
	 * get a list of 
	 * @param OwnerID
	 * @return
	 */
	public List<Complain> findComplainbyOwnerID(String OwnerID);
	
	/**
	 * get all the complain
	 */
	public List<Complain> getAllComplain();
}
